
/* Test1.c
	Purpose: This test case proves that VM implementation is correct and can work with multiple large userprograms with different EXEC and FORK combination. 
	Expected Result: Each sort should be executed to completion.               	Actual Result: All 4 "sort" programs run till the completion.

	CAUTION: Takes too long to execute completely. (Be Patient :D ...) 
 */


#include "syscall.h"

void forkedFunc(void) {
    Exec("../test/sort");
    Exit(0);
}

void main() {
    Fork((void*) forkedFunc);
	Exec("../test/sort");
	Fork((void*) forkedFunc);
	Exec("../test/sort");
    Exit(0);
}

